package com.atguigu.mybatis_plus;

import com.atguigu.mybatis_plus.service.ProductService;
import com.atguigu.mybatis_plus.service.UserService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @Auther: LIJingQi
 * @Description: 分表操作
 * @Date: 2022/5/22 12:41
 */
@SpringBootTest
public class MybatisPlusDatasourceApp {
    @Test
    void contextLoads(){

    }
    @Autowired
    private UserService userService;
    @Autowired
    private ProductService productService;
    @Test
    public void service(){
        System.out.println("userService.getById(1) = " + userService.getById(1));
        System.out.println("productService.getById(1\n        ) = " + productService.getById(1
        ));
    }
}
